package com.erp.service;

import com.erp.entity.Role;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author pyj
 * @since 2020-11-07
 */
public interface RoleService {


    Role findRoleByName(String name);

    List<Role> getAllRoles();
    
    // 携带权限信息
    List<Role> getAll();

    int add(Role role);

    int delete(Integer id);

    int update(Role role);
}
